Ext.define('ZYY.view.system.roleEdit', {
    extend: 'Ext.window.Window',
    alias : 'widget.roleEdit',
    requires: ['Ext.form.Panel'],
    layout: 'fit',
    autoShow: true,
    height: 200,
    width: 400,
    modal:true,
    initComponent: function() {
        this.items = [
            {
                xtype: 'form',
                padding: '5 5 0 5',
                border: false,
                style: 'background-color: #fff;',
				defaults: {
		            anchor: '99%',
		            labelAlign : 'right',
					labelWidth : 70
		        },
                items: [
                    {
                        xtype: 'textfield',
                        name : 'rolename',
                        allowBlank : false,
                        vtype:"char",
                        fieldLabel: '角色名称'
                    },{
                     	 xtype: 'textfield',
                     	 name : 'roledesc',
                     	 fieldLabel: '角色描述'
                    },{
                        xtype: 'textfield',
                        value: "0",
                        vtype:"int",
                        name : 'sortno',
                        fieldLabel: '排序号'
                    },{
                     	 xtype: 'hiddenfield',
                     	 name : 'roleid'
                    }
                ]
            }
        ];

        this.buttons = [
            {
                text: '保存',
                action: 'save'
            },
            {
                text: '取消',
                scope: this,
                handler: this.close
            }
        ];

        this.callParent(arguments);
    }
});

